package com.qcby.controller;

import com.qcby.common.LessonPlan.ShowByPage;
import com.qcby.entity.LessonPlan;
import com.qcby.entity.Result;
import com.qcby.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/TestManagement")
@Api(tags = "考试接口")
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/ShowInfoByPage")
    @ApiOperation(value = "分页展示信息")
    @ResponseBody
    public Result<List<LessonPlan>> showInfoByPage(ShowByPage info){
        return testService.showInfoByPage(info);
    }

}
